import instance from "@/http";

// 获取权限树形结构数据
export const  authTreeData = ()=>instance.get("/permission/treeData")

// 获取权限列表
export  const authList = ()=>instance.get('/permission/list')

// 添加权限信息
export  const addAuth = (authForm)=>instance.post('/permission/add',authForm)

//  根据id 获取权限信息
export const getPermissionById = (id)=>instance.get("/permission/one/"+id)


// 删除权限信息
export const deletePermission= (id)=>instance.delete("/permission/delete/"+id)